<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<a href='http://ldcrm.liando.cn/querysome.action?m=viewImg&fileid=1615966975488nagDG5bZ!8b7644726d0d29f2c3d8ea5d8eb842f4' >测试</a>
<body>
    <script>
var data = [];
for (var i = 0; i < 3; i++) {
  var j = i;
  data[i] = function () {
    return function() { return j++;}
  };

  data["i"+ i] = function() {
      return i;
  }
}

var a = data[0]().j;
var b = data[1]()();	
var c = data[2]()();
var d = data.i2();

console.log(a);
console.log(b);
console.log(c);
console.log(d);
    </script>
</body>
</html>